#ifndef BULLET_H
#define BULLET_H


#include "object.h"
#include "objective.h"

namespace mn
{
    std::vector<Tile*> neighbours(Grid* g,int i,int j);
}

class Bullet : public Object
{
public:

    float speed;
    float friction;
    int power;
    Object* parent;
    bool alive;
    Bullet(Object*);

    void purge();
    void control();
    void physics();
    void step();
    bool isColliding();
    void paint(QPainter *painter, const QStyleOptionGraphicsItem *,QWidget *);
    QRectF boundingRect() const;

};


#endif // BULLET_H
